package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.MessReceive;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * APP收发消息Mapper接口
 * 
 * @author wp
 * @date 2023-08-10
 */
public interface MessReceiveMapper extends BaseMapper<MessReceive> {

    public List<MessReceive> list(MessReceive messReceive);

    public List<MessReceive> appList(MessReceive messReceive);

    /**
     * 获取用户未读消息数量
     * @param receiveUserId
     * @return
     */
    public int unreadMessageCount(@Param("receiveUserId") Long receiveUserId);

}
